<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s1="http://java.sun.com/jsf/composite/sessions/session1"> <!-- Add this (sessions/session1 points to the subdir in resources) -->


	<!-- 
	
		Build the requestInfo composite component.
		Use it from here (including parameters in a second step)
		
		Explain that there is also the possibility to create custom components.
	
	 -->

<h:head>
</h:head>
<h:body>

	<h:form>
		
		<h:panelGrid columns="2">
		
			<h:outputText value="Enter a text:" />
			<h:inputText value="#{valuesBean.stringValue}">
				<f:ajax event="keyup" execute="@this" render="textout"></f:ajax>
			</h:inputText>
			
			<h:outputText value="#{valuesBean.currentDate}" />
			<h:outputText value="#{valuesBean.stringValue}" id="textout" />
			
			<h:panelGroup />
			<h:commandButton value="Submit" />
		
		</h:panelGrid>
		
		<s1:requestInfo title="Dev Day 2013 Request" showParams="true" />
		
	</h:form>

</h:body>

</html>